#at first type on ur terminal that $(uname -r) then u will get the version..
# that is using on ur system

obj-m += demo.o

KDIR =/lib/modules/$(shell uname -r)/build

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules
	gcc test.c -o test

test::
	./test &
	sleep 5
	kill -9 `pidof test`

clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
	rm test
